package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.DrawLotteryParticipationRecordMapper;
import com.netease.nie.model.DrawLotteryParticipationRecord;

/**
 * 抽奖记录数据操作
 * @author gzlibingjie
 */
@Repository
public class DrawLotteryParticipationRecordDao {
	
	@Resource
	private DrawLotteryParticipationRecordMapper drawLotteryParticipationRecordMapper;
	
	public int insert(DrawLotteryParticipationRecord drawLotteryParticipationRecord) {
		return drawLotteryParticipationRecordMapper.insert(drawLotteryParticipationRecord);
	}
	
	public List<DrawLotteryParticipationRecord> queryLast(Long userId, Integer drawLotteryActivityId, Integer minimumTimes) {
		return drawLotteryParticipationRecordMapper.queryLast(userId, drawLotteryActivityId, minimumTimes);
	}

}
